package fitness;

import java.io.Serializable;

public abstract class FitnessResult implements Serializable, Cloneable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1022879943135901613L;

	public abstract Double[] getDecomposition();
	public abstract double finalResult();
	public String toString(){
		String ans = "fitness: "+this.finalResult()+"=";
		for(Double d : this.getDecomposition()){
			ans+=d+"+";
		}
		return ans;
	}
	
	public Object clone(){
		try {
			return super.clone();
		} catch (CloneNotSupportedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
	
	public abstract boolean goodSolution();
}
